package thinkingJava.chapter13;

public class Replacing {
	static String str = Splitting.knights;
	public static void main(String[] args) {
		System.out.println(str.replaceFirst("\\w+day", "yestorday"));
		System.out.println(str.replaceAll("went|rechange", "go"));
	}
}
